package com.orange.handler.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthExpertPowerMapService;
import com.orange.modules.dao.AuthExpertPowerMapRepository;
import com.orange.modules.entity.AuthExpertPowerMap;

@Service
public class AuthExpertPowerMapServiceImpl implements AuthExpertPowerMapService{

	@Autowired
	private AuthExpertPowerMapRepository authExpertPowerMapRepository;

	@Override
	public void insertAuthExpertPowerMap(AuthExpertPowerMap aepm)
			throws SQLException {
		// TODO Auto-generated method stub
		authExpertPowerMapRepository.insertAuthExpertPowerMap(aepm);
		
	}

	@Override
	public List<AuthExpertPowerMap> queryOnceByExpertId(String powerType,
			String expertId) throws SQLException {
		// TODO Auto-generated method stub
		List<AuthExpertPowerMap> list = authExpertPowerMapRepository.queryOnceByExpertId(powerType, expertId);
		return list;
	}
	
}
